<template>
  <div class="search">
    <img src="../assets/images/logo.jpg" alt="" />
    <van-search
      class="v-search"
      right-icon
      background="#f60"
      v-model="value"
      placeholder="请输入搜索关键词"
    />
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: "",
    };
  },
};
</script>

<style lang="scss" scoped>
.search {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: -webkit-box;
  display: flex;
  line-height: 50px;
  height: 50px;
  background: #f60;
  padding: 0 10px;
  color: #fff;
  align-items: center;

  img {
    width: 50px;
    margin-right: 10px;
    height: 15px;
  }
  .v-search {
    height: 50px;
    width: 290px;

    .van-search__content {
      border-radius: 5px;
    }
  }
}
</style>
